package com.hospital.rank.module.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import com.hospital.common.vo.management.module.DoctorInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "management-module", path = "/doctor/info",configuration = FeignConfig.class)
public interface ManagementModuleFeign {
    @GetMapping("/getDoctorById")
    Result<DoctorInfoVo> getDoctor(@RequestParam("userId") Long userId);
}
